package com.deer.wms.inventory.dao;

import com.deer.wms.inventory.model.stockTake.StockTakeMaster;
import com.deer.wms.inventory.model.stockTake.StockTakeMasterCriteria;
import com.deer.wms.project.root.core.mapper.Mapper;
import com.deer.wms.project.root.mapper.SuperMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface StockTakeMasterMapper extends Mapper<StockTakeMaster>,SuperMapper<StockTakeMaster> {
    List<StockTakeMaster> findList(StockTakeMasterCriteria stockTakeMasterCriteria);


    //查询随机货位
    List<Map<String,Object>> selectCell(@Param("wareId") Integer wareId, @Param("num") Integer num);

    //根据货位编码查询货位列表
    List<Map<String,Object>> selectByCode(@Param("wareId") Integer wareId,@Param("cellCodes") String[] cellCodes);

    //全盘
    List<Map<String,Object>> selectAllCode(@Param("wareId") Integer wareId);
}